package org.wit.ecommerce.dto;

import java.io.Serializable;
import java.util.List;


public class Navigator<type> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6674049263593694584L;

	private boolean previous;

	private boolean next;
	
	private int totalRowsAmount;

	private int pageSize;
	
	private int totalPages;

	private List<type> data;

	public boolean isPrevious() {
		return previous;
	}

	public void setPrevious(boolean previous) {
		this.previous = previous;
	}

	public int getTotalRowsAmount() {
		return totalRowsAmount;
	}

	public void setTotalRowsAmount(int totalRowsAmount) {
		this.totalRowsAmount = totalRowsAmount;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}

	public List<type> getData() {
		return data;
	}

	public void setData(List<type> data) {
		this.data = data;
	}

	public void setNext(boolean next) {
		this.next = next;
	}

	public boolean isNext() {
		return next;
	}
}
